<form action="index.php" method="post" name="adminForm">
	<table class="adminlist">
			<thead>	
				<tr>
					<th width="5%">
						<input type="checkbox" name="toggle" value=""  onclick="checkAll(<?php echo $this->TOTAL_ROW;?>);" />
					</th>
					<th class="title">
						Phone
					</th>					
					<th class="title" width="15%" >
						SMS Date
					</th>
					<th class="title" width="15%" >
						Serial Search
					</th>			
					<th class="title" width="10%">
						Status
					</th>
				</tr>
			</thead>
			<tfoot>
				<tr>
					<td colspan="14">
						<?php echo $this->LIST_FOOTER_PAV;?>
					</td>
				</tr>
			</tfoot>
			<tbody>
				<?php if ($this->TOTAL_ROW) {
						$i = 0;
						foreach ($this->dbrow as $key=>$value) {
							$checked = JHTML::_('grid.checkedout', $value, $i );
						 	$css_row = $i%2 ? 'row0':'row1'; 
				?>
							<tr class="<?=$css_row?>">
								<td align="center"><?php echo $checked;?></td>
								<td align="center">
									<?php echo $value->phone_customer;?>
								</td>
								<td align="center">
									<?php echo (empty($value->sms_date))?'':date('d-m-Y', strtotime($value->sms_date));?>
								</td>
								<td align="center">
									<?php echo $value->serial_search;?>
								</td>
								<td align="center">
									<?php echo $value->status;?>
								</td>
							</tr>
				<?php
							$i++;
						}
					} 
				?>	
			</tbody>
	</table>
			
	<input type="hidden" name="option" value="com_manager" />
	<input type="hidden" name="c" value="sms" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="filter_order" value="<?php echo $this->FORM_ORDER;?>" />
	<input type="hidden" name="filter_order_Dir" value="<?php echo $this->FORM_ORDER_DIR;?>" />
	<?php echo $this->FORM_TOKEN;?>
</form>
